package com.janchow.whisper.spi.consumer.demo;

import com.janchow.whisper.spi.demo.ITalkService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
 * Created by Jange on 2016/5/25.
 */
public class LaunchTest {

    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:consumer.xml");

        context.start();

        TalkAction action = context.getBean(TalkAction.class);

        action.doTalk("emily i love u");

        action.doSave();
        System.in.read();
    }

}
